package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.JoinNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Join this node with other nodes. The data is joined on timestamp.
**/

/**
将这个节点与其他节点一起加入。数据在时间戳上加入。
**/
public interface JoinNodeBind extends Node {

    /**
    Join this node with other nodes. The data is joined on timestamp.
    **/
    /**
    将这个节点与其他节点一起加入。数据在时间戳上加入。
    **/
    default JoinNode join(Node ...others){
        JoinNode nextNode = new JoinNode(others);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}